package com.g1.gzbooksingle.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 图书信息表
 * </p>
 *
 * @author admin
 * @since 2021-10-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dg_book_info")
public class DgBookInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 图书名称
     */
    @TableField("book_name")
    private String bookName;

    /**
     * 作者id
     */
    @TableField("author_id")
    private Integer authorId;

    /**
     * 出版社id
     */
    @TableField("publish_id")
    private Integer publishId;

    /**
     * 图书简介
     */
    @TableField("descption")
    private String descption;

    /**
     * 价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 图片路径
     */
    @TableField("image_path")
    private String imagePath;

    /**
     * 分类目录id
     */
    @TableField("index_id")
    private Integer indexId;

    /**
     * 折扣价
     */
    @TableField("discount_price")
    private BigDecimal discountPrice;

    /**
     * 是否作者亲签版
     */
    @TableField("is_sign")
    private Integer isSign;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;


}
